Fix hang after C-z in gnome-shell.
authorJan D. <jan.h.d@swipnet.se>
Sun, 30 Oct 2011 17:17:48 +0000 (18:17 +0100)
committerJan D. <jan.h.d@swipnet.se>
Sun, 30 Oct 2011 17:17:48 +0000 (18:17 +0100)
commitd3b65adf905c408aea986ff113cb3bc1b24d73e9
tree8761b486d60e363576fe2c367f7bf37ddb9f927c
parentf7068778bff2446633b7dad8d3e4ae274872fe99
Fix hang after C-z in gnome-shell.

* xterm.c: Declare x_handle_net_wm_state to return int.
(handle_one_xevent): Check if we are iconified but don't have
_NET_WM_STATE_HIDDEN.  If do, treat as deiconify.
(get_current_wm_state): Return non-zero if not hidden,
check for _NET_WM_STATE_HIDDEN (Bug#9893).
(do_ewmh_fullscreen): Ignore return value from get_current_wm_state.
(x_handle_net_wm_state): Return what get_current_wm_state returns.
(x_term_init): Initialize dpyinfo->Xatom_net_wm_state_hidden.

* xterm.h (x_display_info): Add Xatom_net_wm_state_hidden (Bug#9893).
src/ChangeLog
src/xterm.c
src/xterm.h